﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CZHouseType.ascx.cs"
    Inherits="ZF.WS.UserControls.House.CZHouseType" %> 
<div class="board board1 fylist   mt10_">
    <dl>
        <dt>
            <p>
                最新出租信息</p>
            <zf:ListView runat="server" ID="lvCZHouseType">
                <LayoutTemplate>
                    <zf:PlaceHolder ID="itemPlaceHolder" runat="server">
                    </zf:PlaceHolder>
                </LayoutTemplate>
                <ItemTemplate>
                    <a href="javascript:" class="<%# Container.DataItemIndex==0?"active":"dn_" %> slide"
                        bind="czhousetype<%# Container.DataItemIndex %>">
                        <%#Eval("Text") %></a>
                </ItemTemplate>
            </zf:ListView>
            <a href="/house/search.aspx" class="more">更多>>></a> </dt>
        <zf:ListView runat="server" ID="lvCZHouse">
            <LayoutTemplate>
                <zf:PlaceHolder ID="itemPlaceHolder" runat="server">
                </zf:PlaceHolder>
            </LayoutTemplate>
            <ItemTemplate>
                <dd class="slide czhousetype<%# Container.DataItemIndex %> <%# Container.DataItemIndex==0?"active":"dn_" %>">
                    <table>
                        <tr>
                            <th class="t1">
                                区域
                            </th>
                            <th class="t2">
                                房源地址
                            </th>
                            <th class="t3">
                                房型
                            </th>
                            <th class="t4">
                                租价
                            </th>
                            <th class="t5">
                                来源
                            </th>
                            <th class="t6">
                                发布时间
                            </th>
                        </tr>
                        <zf:ListView ID="ListView1" runat="server" DataSource='<%#Eval("Value") %>'>
                            <LayoutTemplate>
                                <zf:PlaceHolder ID="itemPlaceHolder" runat="server">
                                </zf:PlaceHolder>
                            </LayoutTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td class="t1">
                                        [<%# Eval("City") %>]
                                    </td>
                                    <td class="t2">
                                        <a href="/house/houseinfo.aspx?hid=<%# Eval("House.HouseId") %>">
                                            <%# Eval("House.Title") %></a>
                                    </td>
                                    <td class="t3">
                                        <%# Eval("Model") %>
                                    </td>
                                    <td class="t4">
                                        <%# Eval("Price")%>元/月
                                    </td>
                                    <td class="t5">
                                        <%# Eval("From")%>
                                    </td>
                                    <td class="t6">
                                        <%# ((DateTime)Eval("House.AddTime")).ToShortDateString() %>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </zf:ListView>
                    </table>
                </dd>
            </ItemTemplate>
        </zf:ListView>
    </dl>
</div>
